import request from "@/api/request";
import type { AxiosResponse } from "axios";

// get list
export type GetCountryParams = {
  channel: number | string
}
export function getCountry(params: GetCountryParams): Promise<AxiosResponse> {
  return request('country_block/query_country_block_config', params, 'post')
}


// create
type CreateParams = {
  channel: number,
  country: string,
  opt_type: number
}
export function create(params: CreateParams):Promise<AxiosResponse>{
  return request('country_block/set_country_block_config', params, 'post')
}